package com.epoch.dao;

import com.epoch.entity.Course;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author admin
 */
@Mapper
@Repository
public interface CourseDao {
    /**
     *
     * get Course by id
     * @param courseId
     * @return
     */
    Course getCourseById(@Param("courseId") String courseId);

    /**
     * get course by typeId
     * @param typeId
     * @return
     */
    List<Course> getCourseByTypeId(@Param("typeId") String typeId);
}
